package cn.itsource.basic.mapper;

import cn.itsource.basic.query.BaseQuery;
import cn.itsource.org.domain.TDepartment;
import cn.itsource.org.query.TDepartmentQuery;

import java.util.List;

public interface BaseMapper<T> {

    void insert(T t);
    void delete(Long id);
    void update(T t);
    T selectById(Long id);
    List<T> selectAll();


    void patchDelete(List<Long> ids);


    Integer QueryCount(BaseQuery query);


    List<TDepartment> QueryData(BaseQuery query);

}
